<script>
	export default {
		onLaunch: function() {
			console.log('App Launch')
		},
		onShow: function() {
			const updateManager = uni.getUpdateManager();
			updateManager.onUpdateReady(function(res) {
				uni.showModal({
					title: '更新提示',
					content: '新版本已经准备好，是否重启应用？',
					showCancel: true,
					success(res) {
						if (res.confirm) {
							uni.clearStorageSync();
							updateManager.applyUpdate();
						}
					}
				});
			});
		},
		onHide: function() {
			console.log('App Hide')
		}
	}
</script>

<style lang="scss">
	/*每个页面公共css */
	.page_width{
		 width: 702rpx;
	}
	.inputs_info {
		height: 140rpx;
		background-color: #fff;
		width: 100%;
		position: sticky;
		top: 0%;
		z-index: 99;
		.ipt {
			display: flex;
			justify-content: space-between;
			position: absolute;
			background-color: #F0F0F1;
			width: 652rpx;
			height: 80rpx;
			margin: 30rpx auto;
			border-radius: 40rpx;
			padding: 14rpx 40rpx;
			box-sizing: border-box;
			left: 50%;
			transform: translateX(-50%);
			.inputs{
				flex: 1;
				height: 52rpx;
			}
		}
	}
</style>
